<extend name="Public/base"/>
<block name="content">
    <div class="row-fluid">
        <form class="form-horizontal" action="{:U('funmenuEdit')}" method="post">
            <fieldset>
                <legend>编辑功能按钮</legend>
				 <div class="control-group">
                    <label class="control-label">功能名称</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$funmenu_one[0]['title']}" name="title">
                    </div>
                </div> 
                <div class="control-group">
                    <label class="control-label">调用变量</label>
                    <div class="controls">
                        <input type="text" class="input-xs" value="{$funmenu_one[0]['js_fun']}" name="js_fun">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">浮层类型</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$funmenu_one[0]['js_fun_param']}" name="js_fun_param">
                    </div>
                </div> <div class="control-group">
                    <label class="control-label">跳转流程</label>
                    <div class="controls">
                        <select name="process_id">
                            <option value="">请跳转流程</option>
							<foreach name="process_list" item="vo" >
                                <if condition="$vo['process_id'] eq $funmenu_one[0]['process_id']">
                                    <option value="{$vo['process_id']}" selected="selected">{$vo['title']}</option>
                                    <else/>
                                    <option value="{$vo['process_id']}">{$vo['title']}</option>
                                </if>
							</foreach>
                        </select>
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">提交条件</label>
                    <div class="controls">
                        <textarea class="textarea" name="update_tag" style="width:370px;">{$funmenu_one[0]['update_tag']}</textarea>
                    </div>
                </div>

				 <div class="control-group">
                    <label class="control-label">指定用户</label>
                    <div class="controls">
						<foreach name="user_list" item="vo" >
							<in name="vo['id']" value="$funmenu_one[0]['check_user']">
								<input type="checkbox" name="check_user[]" value="{$vo['id']}" checked /> {$vo['username']}
								<else />
								<input type="checkbox" name="check_user[]" value="{$vo['id']}"/> {$vo['username']}
							</in>
						</foreach>
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">提交提示</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$funmenu_one[0]['tj_ts']}" name="tj_ts">
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">操作类型</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$funmenu_one[0]['control_type']}" name="control_type">
                    </div>
                </div>
				<div class="control-group">
                    <label class="control-label">操作提示</label>
                    <div class="controls">
                        <textarea class="textarea" name="ts_message" style="width:370px;">{$funmenu_one[0]['ts_message']}</textarea>
                    </div>
                </div>
				<div class="control-group">
                    <label class="control-label">更新字段</label>
                    <div class="controls">
                        <textarea class="textarea" name="update_field" style="width:370px;">{$funmenu_one[0]['update_field']}</textarea>
                    </div>
                </div>
				<div class="control-group">
                    <label class="control-label">备注</label>
                    <div class="controls">
                        <textarea class="textarea" name="abs" style="width:370px;">{$funmenu_one[0]['abs']}</textarea>
                    </div>
                </div>
                <div class="form-actions">
                	<input type="hidden" name="id" value="{$funmenu_one[0]['id']}">
                    <button type="submit" class="btn btn-primary">更新</button>
                </div>
            </fieldset>
        </form>
    </div>
</block>
